R1
# 2024-04-19 13:05:57 by RouterOS 7.14
# software id =
#
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
set slot20 slot=slot20
set slot21 slot=slot21
set slot22 slot=slot22
set slot23 slot=slot23
/interface ethernet
set [ find default-name=ether1 ] name=ether0
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether3 ] name=ether2
set [ find default-name=ether4 ] name=ether3
/port
set 0 name=serial0
/routing bgp template
add address-families=ip as=122 disabled=no name=toRR router-id=22.1.1.1
/routing isis instance
add areas=49.0122 name=instance1 system-id=0000.0000.0001
/ip address
add address=22.1.1.1 interface=lo network=22.1.1.1
add address=100.22.1.1/24 interface=ether0 network=100.22.1.0
add address=100.22.15.1/24 interface=ether2 network=100.22.15.0
add address=10.22.1.1/24 interface=ether3 network=10.22.1.0
add address=10.22.2.1/24 interface=ether1 network=10.22.2.0
/ip dhcp-client
add interface=ether0
/ip route
add comment=1 disabled=no distance=1 dst-address=22.5.5.5/32 gateway=\
    100.22.1.2 pref-src="" routing-table=main scope=30 suppress-hw-offload=no \
    target-scope=10
add comment=15 disabled=yes distance=1 dst-address=22.5.5.5/32 gateway=\
    100.22.15.2 pref-src="" routing-table=main scope=30 suppress-hw-offload=\
    no target-scope=10
/routing bgp connection
add address-families=ip as=122 disabled=no local.address=22.1.1.1 .role=\
    ibgp-rr-client name=toRR nexthop-choice=force-self remote.address=\
    22.2.2.2/32 .as=122 router-id=22.1.1.1 routing-table=main templates=toRR
add address-families=ip as=122 disabled=no local.address=22.1.1.1 .role=ebgp \
    multihop=yes name=toAS322 remote.address=22.5.5.5/32 .as=322 router-id=\
    22.1.1.1 routing-table=main
/routing isis interface-template
add instance=instance1 interfaces=lo,ether1,ether3 levels=l1
/system identity
set name=R1-22
/system note
set show-at-login=no
/tool netwatch
# Warning: probe waiting startup-delay=5m; 2m25s remaining
add disabled=no down-script="/ip/route/enable [find comment=\"15\"]\r\
    \n/ip/route/disable [find comment=\"1\"]" host=100.22.1.2 http-codes="" \
    src-address=100.22.1.1 test-script="" type=icmp up-script="/ip/route/enabl\
    e [find comment=\"1\"]\r\
    \n/ip/route/disable [find comment=\"15\"]"
/tool romon
set enabled=yes



R2
# 2024-04-19 13:10:39 by RouterOS 7.14
# software id =
#
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
set slot20 slot=slot20
set slot21 slot=slot21
set slot22 slot=slot22
set slot23 slot=slot23
set slot24 slot=slot24
set slot25 slot=slot25
set slot26 slot=slot26
set slot27 slot=slot27
set slot28 slot=slot28
set slot29 slot=slot29
set slot30 slot=slot30
set slot31 slot=slot31
/interface ethernet
set [ find default-name=ether1 ] name=ether0
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether3 ] name=ether2
set [ find default-name=ether4 ] name=ether3
/port
set 0 name=serial0
/routing isis instance
add areas=49.0122 name=instance1 system-id=0000.0000.0002
/routing bgp template
add address-families=ip as=122 disabled=no name=R2RR nexthop-choice=\
    force-self router-id=22.2.2.2 routing-table=main
/ip address
add address=10.22.1.2/24 interface=ether3 network=10.22.1.0
add address=10.22.3.2/24 interface=ether1 network=10.22.3.0
add address=22.2.2.2 interface=lo network=22.2.2.2
add address=100.22.2.2/24 interface=ether0 network=100.22.2.0
/ip dhcp-client
add interface=ether0
/ip route
add disabled=no dst-address=22.6.6.6/32 gateway=100.22.2.1 routing-table=main \
    suppress-hw-offload=no
/routing bgp connection
add disabled=no local.address=22.2.2.2 .role=ibgp-rr name=toR1 \
    remote.address=22.1.1.1/32 .allowed-as="" .as=122 templates=R2RR
add as=122 disabled=no local.address=22.2.2.2 .role=ibgp-rr name=toR11 \
    remote.address=22.11.11.11/32 .as=122 templates=R2RR
add disabled=no local.address=22.2.2.2 .role=ibgp-rr name=toR10 \
    remote.address=22.10.10.10/32 .as=122 templates=R2RR
add address-families=ip as=122 disabled=no local.address=22.2.2.2 .role=ebgp \
    multihop=yes name=toAS322 remote.address=22.6.6.6/32 .as=322 router-id=\
    22.2.2.2 routing-table=main
/routing isis interface-template
add instance=instance1 interfaces=lo,ether1,ether3 levels=l1
/system identity
set name=R2-22
/system note
set show-at-login=no
/tool romon
set enabled=yes



R3
# 2024-04-19 13:12:05 by RouterOS 7.14
# software id =
#
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
set slot20 slot=slot20
set slot21 slot=slot21
set slot22 slot=slot22
set slot23 slot=slot23
set slot24 slot=slot24
set slot25 slot=slot25
set slot26 slot=slot26
set slot27 slot=slot27
set slot28 slot=slot28
set slot29 slot=slot29
set slot30 slot=slot30
set slot31 slot=slot31
/interface ethernet
set [ find default-name=ether1 ] name=ether0
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether3 ] name=ether2
set [ find default-name=ether4 ] name=ether3
/port
set 0 name=serial0
/routing isis instance
add areas=49.0222 disabled=no name=instance1 system-id=0000.0000.0003
/routing bgp template
add address-families=ip as=222 disabled=no name=local nexthop-choice=\
    force-self router-id=22.3.3.3 routing-table=main
/ip address
add address=20.22.2.2/24 interface=ether1 network=20.22.2.0
add address=20.22.1.2/24 interface=ether3 network=20.22.1.0
add address=22.3.3.3 interface=lo network=22.3.3.3
add address=100.22.3.2/24 interface=ether0 network=100.22.3.0
/ip dhcp-client
add interface=ether0
/ip firewall address-list
add address=200.22.0.4/30 list=bgp
/ip route
add disabled=no dst-address=22.7.7.7/32 gateway=100.22.3.1 routing-table=main \
    suppress-hw-offload=no
/routing bgp connection
add disabled=no local.address=22.3.3.3 .role=ibgp-rr name=toR12 \
    remote.address=22.12.12.12/32 .as=222 templates=local
add disabled=no local.address=22.3.3.3 .role=ibgp-rr name=toR4 \
    remote.address=22.4.4.4/32 .as=222 templates=local
add disabled=no local.address=22.3.3.3 .role=ibgp-rr name=toR13 \
    remote.address=22.13.13.13/32 .as=222 templates=local
add address-families=ip as=222 disabled=no local.address=22.3.3.3 .role=ebgp \
    multihop=yes name=toAS322 remote.address=22.7.7.7/32 .as=322 router-id=\
    22.3.3.3 routing-table=main
/routing isis interface-template
add instance=instance1 interfaces=ether1,lo,ether3 levels=l1
/system identity
set name=R3-22
/system note
set show-at-login=no
/tool romon
set enabled=yes



[admin@R4-22] > export compact
# 2024-04-19 13:12:43 by RouterOS 7.14
# software id =
#
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
set slot20 slot=slot20
set slot21 slot=slot21
set slot22 slot=slot22
set slot23 slot=slot23
set slot24 slot=slot24
set slot25 slot=slot25
set slot26 slot=slot26
set slot27 slot=slot27
set slot28 slot=slot28
set slot29 slot=slot29
set slot30 slot=slot30
set slot31 slot=slot31
set slot32 slot=slot32
/interface ethernet
set [ find default-name=ether1 ] name=ether0
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether3 ] name=ether2
set [ find default-name=ether4 ] name=ether3
/ip pool
add name=forGlav ranges=200.22.0.6
/ip dhcp-server
add address-pool=forGlav interface=ether2 name=forglavFW2
/port
set 0 name=serial0
/routing isis instance
add areas=49.0222 disabled=no name=instance1 system-id=0000.0000.0004
/ip address
add address=20.22.1.1/24 interface=ether3 network=20.22.1.0
add address=20.22.3.1/24 interface=ether1 network=20.22.3.0
add address=22.4.4.4 interface=lo network=22.4.4.4
add address=100.22.4.1/24 interface=ether0 network=100.22.4.0
add address=200.22.0.5/30 interface=ether2 network=200.22.0.4
/ip dhcp-client
add interface=ether0
/ip firewall address-list
add address=200.22.0.4/30 list=bgp
/ip route
add disabled=no dst-address=22.8.8.8/32 gateway=100.22.4.2 routing-table=main \
    suppress-hw-offload=no
/routing bgp connection
add address-families=ip as=222 disabled=no local.address=22.4.4.4 .role=\
    ibgp-rr-client name=toRR nexthop-choice=force-self output.network=bgp \
    remote.address=22.3.3.3/32 .as=222 router-id=22.4.4.4 routing-table=main
add address-families=ip as=222 disabled=no local.address=22.4.4.4 .role=ebgp \
    multihop=yes name=toAS322 output.default-originate=always remote.address=\
    22.8.8.8/32 .as=322 router-id=22.4.4.4 routing-table=main
/routing isis interface-template
add instance=instance1 interfaces=ether3,ether1,lo levels=l1
/system identity
set name=R4-22
/system note
set show-at-login=no
/tool romon
set enabled=yes



[admin@R5-22] > export compact
# 2024-04-19 13:13:27 by RouterOS 7.14
# software id =
#
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
set slot20 slot=slot20
set slot21 slot=slot21
set slot22 slot=slot22
set slot23 slot=slot23
set slot24 slot=slot24
set slot25 slot=slot25
set slot26 slot=slot26
/interface ethernet
set [ find default-name=ether1 ] name=ether0
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether3 ] name=ether2
set [ find default-name=ether4 ] name=ether3
/ip pool
add name=filial1 ranges=200.22.0.18
/ip dhcp-server
add address-pool=filial1 interface=ether0 name=Filial1
/port
set 0 name=serial0
/routing bgp template
add address-families=ip as=322 disabled=no name=toRR router-id=22.5.5.5
/routing isis instance
add areas=49.0322 name=instance1 system-id=0000.0000.0005
/ip address
add address=200.22.0.17/30 interface=ether0 network=200.22.0.16
add address=100.22.1.2/24 interface=ether1 network=100.22.1.0
add address=100.22.15.2/24 interface=ether3 network=100.22.15.0
add address=30.22.1.2/24 interface=ether2 network=30.22.1.0
add address=22.5.5.5 interface=lo network=22.5.5.5
/ip dhcp-client
add interface=ether0
/ip firewall address-list
add address=200.22.0.16/30 list=bgp
/ip route
add comment=1 disabled=no distance=1 dst-address=22.1.1.1/32 gateway=\
    100.22.1.1 pref-src="" routing-table=main scope=30 suppress-hw-offload=no \
    target-scope=10
add comment=15 disabled=yes distance=1 dst-address=22.1.1.1/32 gateway=\
    100.22.15.1 pref-src="" routing-table=main scope=30 suppress-hw-offload=\
    no target-scope=10
/routing bgp connection
add address-families=ip as=322 disabled=no local.address=22.5.5.5 .role=\
    ibgp-rr-client name=toRR nexthop-choice=force-self output.network=bgp \
    remote.address=22.7.7.7/32 .as=322 router-id=22.5.5.5 routing-table=main \
    templates=toRR
add address-families=ip as=322 disabled=no local.address=22.5.5.5 .role=ebgp \
    multihop=yes name=toAS122 output.default-originate=always remote.address=\
    22.1.1.1/32 .as=122 router-id=22.5.5.5 routing-table=main templates=\
    default
/routing isis interface-template
add instance=instance1 interfaces=ether2,lo levels=l1
/system identity
set name=R5-22
/system note
set show-at-login=no
/tool netwatch
add disabled=no down-script="/ip/route/enable [find comment=\"15\"]\r\
    \n/ip/route/disable [find comment=\"1\"]" host=100.22.1.1 http-codes="" \
    src-address=100.22.1.2 test-script="" type=icmp up-script="/ip/route/enabl\
    e [find comment=\"1\"]\r\
    \n/ip/route/disable [find comment=\"15\"]"
/tool romon
set enabled=yes



[admin@R6-22] > export compact
# 2024-04-19 13:14:06 by RouterOS 7.14
# software id =
#
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
set slot20 slot=slot20
set slot21 slot=slot21
set slot22 slot=slot22
set slot23 slot=slot23
set slot24 slot=slot24
set slot25 slot=slot25
set slot26 slot=slot26
/interface ethernet
set [ find default-name=ether1 ] name=ether0
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether3 ] name=ether2
set [ find default-name=ether4 ] name=ether3
/port
set 0 name=serial0
/routing bgp template
add address-families=ip as=322 disabled=no name=toRR router-id=22.6.6.6
/routing isis instance
add areas=49.0322 name=instance1 system-id=0000.0000.0006
/ip address
add address=30.22.1.1/24 interface=ether1 network=30.22.1.0
add address=100.22.2.1/24 interface=ether0 network=100.22.2.0
add address=30.22.2.1/24 interface=ether2 network=30.22.2.0
add address=22.6.6.6 interface=lo network=22.6.6.6
/ip dhcp-client
add interface=ether0
/ip route
add disabled=no dst-address=22.2.2.2/32 gateway=100.22.2.2 routing-table=main \
    suppress-hw-offload=no
/routing bgp connection
add address-families=ip as=322 disabled=no local.address=22.6.6.6 .role=\
    ibgp-rr-client name=toRR nexthop-choice=force-self remote.address=\
    22.7.7.7/32 .as=322 router-id=22.6.6.6 routing-table=main templates=toRR
add address-families=ip as=322 disabled=no local.address=22.6.6.6 .role=ebgp \
    multihop=yes name=toAS122 output.default-originate=always remote.address=\
    22.2.2.2/32 .as=122 router-id=22.6.6.6 routing-table=main
/routing isis interface-template
add instance=instance1 interfaces=ether2,lo levels=l1
add instance=instance1 interfaces=ether2,ether1,lo levels=l1
/system identity
set name=R6-22
/system note
set show-at-login=no
/tool romon
set enabled=yes



[admin@R7-22] > export compact
# 2024-04-19 13:15:06 by RouterOS 7.14
# software id =
#
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
set slot20 slot=slot20
set slot21 slot=slot21
set slot22 slot=slot22
set slot23 slot=slot23
set slot24 slot=slot24
set slot25 slot=slot25
set slot26 slot=slot26
set slot27 slot=slot27
set slot28 slot=slot28
set slot29 slot=slot29
set slot30 slot=slot30
set slot31 slot=slot31
/interface ethernet
set [ find default-name=ether1 ] name=ether0
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether3 ] name=ether2
set [ find default-name=ether4 ] name=ether3
set [ find default-name=ether5 ] name=ether4
/ip pool
add name=Glav ranges=200.22.0.2
/ip dhcp-server
add address-pool=Glav interface=ether3 name=forGlavFW1
/port
set 0 name=serial0
/routing isis instance
add areas=49.0322 name=instance1 system-id=0000.0000.0007
/routing bgp template
add address-families=ip as=322 disabled=no name=forRR output.network=bgp \
    router-id=22.7.7.7 routing-table=main
/ip address
add address=30.22.3.1/24 interface=ether1 network=30.22.3.0
add address=30.22.4.1/24 interface=ether2 network=30.22.4.0
add address=200.22.0.1/30 interface=ether3 network=200.22.0.0
add address=22.7.7.7 interface=lo network=22.7.7.7
add address=100.22.3.1/24 interface=ether0 network=100.22.3.0
/ip dhcp-client
add interface=ether4
/ip firewall address-list
add address=200.22.0.0/30 list=bgp
/ip route
add disabled=no dst-address=22.3.3.3/32 gateway=100.22.3.2 routing-table=main \
    suppress-hw-offload=no
/routing bgp connection
add address-families=ip as=322 disabled=no input.filter="" local.address=\
    22.7.7.7 .role=ibgp-rr name=toR5 nexthop-choice=force-self \
    output.default-originate=always .network=bgp remote.address=22.5.5.5/32 \
    .as=322 router-id=22.7.7.7 routing-table=main templates=forRR
add address-families=ip as=322 disabled=no local.address=22.7.7.7 .role=\
    ibgp-rr name=toR6 nexthop-choice=force-self output.default-originate=\
    always .network=bgp remote.address=22.6.6.6/32 .as=322 router-id=22.7.7.7 \
    routing-table=main templates=forRR
add address-families=ip as=322 disabled=no local.address=22.7.7.7 .role=\
    ibgp-rr name=toR9 nexthop-choice=force-self output.default-originate=\
    always .network=bgp remote.address=22.9.9.9/32 .as=322 router-id=22.7.7.7 \
    routing-table=main templates=forRR
add address-families=ip as=322 disabled=no local.address=22.7.7.7 .role=\
    ibgp-rr name=toR8 nexthop-choice=force-self output.default-originate=\
    always .network=bgp remote.address=22.8.8.8/32 .as=322 router-id=22.7.7.7 \
    routing-table=main templates=forRR
add address-families=ip as=322 disabled=no local.address=22.7.7.7 .role=ebgp \
    multihop=yes name=toAS222 output.default-originate=always .redistribute=\
    "" remote.address=22.3.3.3/32 .as=222 router-id=22.7.7.7 routing-table=\
    main
/routing isis interface-template
add instance=instance1 interfaces=ether2,ether1,lo levels=l1
/system identity
set name=R7-22
/system note
set show-at-login=no
/tool romon
set enabled=yes



[admin@R8-22] > export compact
# 2024-04-19 13:15:40 by RouterOS 7.14
# software id =
#
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
set slot20 slot=slot20
set slot21 slot=slot21
set slot22 slot=slot22
set slot23 slot=slot23
set slot24 slot=slot24
set slot25 slot=slot25
set slot26 slot=slot26
/interface ethernet
set [ find default-name=ether1 ] name=ether0
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether3 ] name=ether2
set [ find default-name=ether4 ] name=ether3
/port
set 0 name=serial0
/routing bgp template
add address-families=ip as=322 disabled=no name=toRR router-id=22.8.8.8
/routing isis instance
add areas=49.0322 name=instance1 system-id=0000.0000.0008
/ip address
add address=30.22.4.2/24 interface=ether1 network=30.22.4.0
add address=100.22.4.2/24 interface=ether0 network=100.22.4.0
add address=22.8.8.8 interface=lo network=22.8.8.8
/ip dhcp-client
add interface=ether0
/ip route
add disabled=no dst-address=22.4.4.4/32 gateway=100.22.4.1 routing-table=main \
    suppress-hw-offload=no
/routing bgp connection
add address-families=ip as=322 disabled=no local.address=22.8.8.8 .role=\
    ibgp-rr-client name=toRR nexthop-choice=force-self remote.address=\
    22.7.7.7/32 .as=322 router-id=22.8.8.8 routing-table=main templates=toRR
add address-families=ip as=322 disabled=no local.address=22.8.8.8 .role=ebgp \
    multihop=yes name=toAS222 remote.address=22.4.4.4/32 .as=222 router-id=\
    22.8.8.8 routing-table=main
/routing isis interface-template
add instance=instance1 interfaces=ether1,lo levels=l1
add instance=instance1 interfaces=ether1,lo levels=l1
/system identity
set name=R8-22
/system note
set show-at-login=no
/tool romon
set enabled=yes



[admin@R9-22] > export compact
# 2024-04-19 13:16:25 by RouterOS 7.14
# software id =
#
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
set slot20 slot=slot20
set slot21 slot=slot21
set slot22 slot=slot22
set slot23 slot=slot23
set slot24 slot=slot24
/interface ethernet
set [ find default-name=ether1 ] name=ether0
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether3 ] name=ether2
set [ find default-name=ether4 ] name=ether3
/port
set 0 name=serial0
/routing bgp template
add address-families=ip as=322 disabled=no name=toRR router-id=22.9.9.9
/routing isis instance
add areas=49.0322 name=instance1 system-id=0000.0000.0009
/ip address
add address=30.22.2.2/24 interface=ether1 network=30.22.2.0
add address=30.22.3.2/24 interface=ether2 network=30.22.3.0
add address=22.9.9.9 interface=lo network=22.9.9.9
/ip dhcp-client
add interface=ether0
/routing bgp connection
add disabled=no local.address=22.9.9.9 .role=ibgp-rr-client name=toRR \
    remote.address=22.7.7.7/32 .as=322 templates=toRR
/routing isis interface-template
add instance=instance1 interfaces=ether2,ether1,lo levels=l1
/system identity
set name=R9-22
/system note
set show-at-login=no
/tool romon
set enabled=yes



[admin@R10-22] > export compact
# 2024-04-19 13:17:51 by RouterOS 7.14
# software id =
#
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
set slot20 slot=slot20
set slot21 slot=slot21
set slot22 slot=slot22
set slot23 slot=slot23
set slot24 slot=slot24
set slot25 slot=slot25
set slot26 slot=slot26
set slot27 slot=slot27
set slot28 slot=slot28
set slot29 slot=slot29
set slot30 slot=slot30
set slot31 slot=slot31
/interface ethernet
set [ find default-name=ether1 ] name=ether0
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether3 ] name=ether2
set [ find default-name=ether4 ] name=ether3
/ip pool
add name=pool_for_fil2 ranges=200.22.0.34
/ip dhcp-server
add address-pool=pool_for_fil2 interface=ether1 name=server1
/port
set 0 name=serial0
/routing isis instance
add areas=49.0122 name=instance1 system-id=0000.0000.0010
/routing bgp template
add address-families=ip as=122 disabled=no name=toR2 nexthop-choice=\
    force-self router-id=22.2.2.2 routing-table=main
/ip address
add address=10.22.2.2/24 interface=ether0 network=10.22.2.0
add address=200.22.0.33/30 interface=ether1 network=200.22.0.32
add address=22.10.10.10 interface=lo network=22.10.10.10
/ip dhcp-client
add interface=ether0
/ip firewall address-list
add address=200.22.0.32/30 list=bgp
/routing bgp connection
add address-families=ip as=122 disabled=no local.address=22.10.10.10 .role=\
    ibgp-rr-client name=toR2 nexthop-choice=force-self output.network=bgp \
    remote.address=22.2.2.2/32 .as=122 router-id=22.10.10.10 routing-table=\
    main templates=toR2
/routing isis interface-template
add instance=instance1 interfaces=lo,ether0 levels=l1
/system identity
set name=R10-22
/system note
set show-at-login=no
/tool romon
set enabled=yes



[admin@R11-22] > export compact
# 2024-04-24 11:23:25 by RouterOS 7.14
# software id =
#
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
set slot20 slot=slot20
set slot21 slot=slot21
set slot22 slot=slot22
set slot23 slot=slot23
set slot24 slot=slot24
set slot25 slot=slot25
set slot26 slot=slot26
set slot27 slot=slot27
set slot28 slot=slot28
set slot29 slot=slot29
set slot30 slot=slot30
set slot31 slot=slot31
set slot32 slot=slot32
set slot33 slot=slot33
set slot34 slot=slot34
set slot35 slot=slot35
set slot36 slot=slot36
set slot37 slot=slot37
set slot38 slot=slot38
set slot39 slot=slot39
set slot40 slot=slot40
set slot41 slot=slot41
set slot42 slot=slot42
set slot43 slot=slot43
set slot44 slot=slot44
set slot45 slot=slot45
set slot46 slot=slot46
set slot47 slot=slot47
set slot48 slot=slot48
set slot49 slot=slot49
set slot50 slot=slot50
set slot51 slot=slot51
set slot52 slot=slot52
set slot53 slot=slot53
set slot54 slot=slot54
set slot55 slot=slot55
set slot56 slot=slot56
set slot57 slot=slot57
set slot58 slot=slot58
set slot59 slot=slot59
/interface ethernet
set [ find default-name=ether1 ] name=ether0
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether3 ] name=ether2
set [ find default-name=ether4 ] name=ether3
/ip pool
add name=dhcp_pool0 ranges=200.22.0.66
/ip dhcp-server
add address-pool=dhcp_pool0 interface=ether1 name=dhcp1
/port
set 0 name=serial0
/routing bgp template
add address-families=ip as=122 disabled=no name=toR2 router-id=22.11.11.11
/routing isis instance
add areas=49.0122 name=instance1 system-id=0000.0000.0011
/ip settings
set max-neighbor-entries=8192
/ipv6 settings
set max-neighbor-entries=4096
/ip address
add address=10.22.3.1/24 interface=ether0 network=10.22.3.0
add address=22.11.11.11 interface=lo network=22.11.11.11
add address=200.22.0.65/30 interface=ether1 network=200.22.0.64
/ip dhcp-client
add interface=ether0
/ip dhcp-server network
add address=200.22.0.64/30 dns-server=10.22.9.31 gateway=200.22.0.65
/ip firewall address-list
add address=200.22.0.64/30 list=bgp
/ip route
add gateway=10.22.3.2
/routing bgp connection
add address-families=ip as=122 disabled=no local.address=22.11.11.11 .role=\
    ibgp-rr-client name=toR2 nexthop-choice=force-self output.network=bgp \
    remote.address=22.2.2.2/32 .as=122 router-id=22.11.11.11 routing-table=\
    main templates=toR2
/routing isis interface-template
add instance=instance1 interfaces=lo,ether0 levels=l1
/system identity
set name=R11-22
/system note
set show-at-login=no
/tool romon
set enabled=yes



[admin@R12-22] > export compact
# 2024-04-19 13:20:30 by RouterOS 7.14
# software id =
#
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
set slot20 slot=slot20
set slot21 slot=slot21
set slot22 slot=slot22
set slot23 slot=slot23
set slot24 slot=slot24
set slot25 slot=slot25
set slot26 slot=slot26
set slot27 slot=slot27
set slot28 slot=slot28
set slot29 slot=slot29
/interface ethernet
set [ find default-name=ether1 ] name=ether0
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether3 ] name=ether2
set [ find default-name=ether4 ] name=ether3
/port
set 0 name=serial0
/routing isis instance
add areas=49.0222 disabled=no name=instance1 system-id=0000.0000.0012
/ip address
add address=20.22.2.1/24 interface=ether0 network=20.22.2.0
add address=22.12.12.12 interface=lo network=22.12.12.12
/ip dhcp-client
add interface=ether0
/routing bgp connection
add address-families=ip as=222 disabled=no local.address=22.12.12.12 .role=\
    ibgp-rr-client name=toRR remote.address=22.3.3.3/32 .as=222 router-id=\
    22.12.12.12
/routing isis interface-template
add instance=instance1 interfaces=ether0,lo levels=l1
/system identity
set name=R12-22
/system note
set show-at-login=no
/tool romon
set enabled=yes



[admin@R13-22] > export compact
# 2024-04-19 13:20:53 by RouterOS 7.14
# software id =
#
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
set slot20 slot=slot20
set slot21 slot=slot21
set slot22 slot=slot22
set slot23 slot=slot23
set slot24 slot=slot24
set slot25 slot=slot25
set slot26 slot=slot26
set slot27 slot=slot27
set slot28 slot=slot28
set slot29 slot=slot29
/interface ethernet
set [ find default-name=ether1 ] name=ether0
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether3 ] name=ether2
set [ find default-name=ether4 ] name=ether3
/port
set 0 name=serial0
/routing isis instance
add areas=49.0222 disabled=no name=instance1 system-id=0000.0000.0013
/ip address
add address=20.22.3.2/24 interface=ether0 network=20.22.3.0
add address=22.13.13.13 interface=lo network=22.13.13.13
/ip dhcp-client
add interface=ether0
/routing bgp connection
add address-families=ip as=222 disabled=no local.address=22.13.13.13 .role=\
    ibgp-rr-client name=toRR remote.address=22.3.3.3/32 .as=222 router-id=\
    22.13.13.13
/routing isis interface-template
add instance=instance1 interfaces=ether0,lo levels=l1
/system identity
set name=R13-22
/system note
set show-at-login=no
/tool romon
set enabled=yes



[admin@R14-22] > export compact
# 2024-04-22 11:12:03 by RouterOS 7.14.2
# software id =
#
/interface ethernet
set [ find default-name=ether1 ] name=ether0
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether3 ] name=ether2
set [ find default-name=ether4 ] name=ether3
/interface gre
add allow-fast-path=no local-address=200.22.0.18 name=gre-tunnel1 \
    remote-address=200.22.0.6
add allow-fast-path=no local-address=200.22.0.18 name=gre-tunnel2 \
    remote-address=200.22.0.2
/interface vlan
add interface=ether1 name=vlan10 vlan-id=10
add interface=ether1 name=vlan40 vlan-id=40
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
/interface lte apn
set [ find default=yes ] ip-type=ipv4 use-network-apn=no
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool0 ranges=10.22.6.10-10.22.6.254
add name=dhcp_pool1 ranges=10.22.16.16-10.22.16.253
add name=dhcp_pool2 ranges=10.22.21.16-10.22.21.254
/ip dhcp-server
add address-pool=dhcp_pool0 interface=vlan10 lease-time=10m name=dhcp1
add address-pool=dhcp_pool2 interface=vlan40 name=dhcp2
/port
set 0 name=serial0
/routing id
add disabled=no name=id_loopback select-dynamic-id=only-loopback
/routing ospf instance
add disabled=no name=ospf-instance-1 router-id=id_loopback
/routing ospf area
add disabled=no instance=ospf-instance-1 name=ospf-area-1
/ip firewall connection tracking
set udp-timeout=10s
/ipv6 settings
set disable-ipv6=yes max-neighbor-entries=8192
/interface ovpn-server server
set auth=sha1,md5
/ip address
add address=10.22.19.1/24 interface=ether1 network=10.22.19.0
add address=10.22.6.2/24 interface=vlan10 network=10.22.6.0
add address=10.22.11.1/24 interface=gre-tunnel2 network=10.22.11.0
add address=10.22.10.1/24 interface=gre-tunnel1 network=10.22.10.0
add address=10.22.21.15/24 interface=vlan40 network=10.22.21.0
add address=22.14.14.14 interface=lo network=22.14.14.14
/ip dhcp-client
add interface=ether0
/ip dhcp-server lease
add address=10.22.6.31 client-id=\
    ff:29:cb:5d:86:0:1:0:1:2d:b8:d4:4b:0:c:29:cb:5d:86 mac-address=\
    00:0C:29:CB:5D:86 server=dhcp1
/ip dhcp-server network
add address=10.22.6.0/24 dns-server=10.22.6.31 gateway=10.22.6.2
add address=10.22.21.0/24 dns-server=10.22.6.31 gateway=10.22.21.15
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether0
/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
    10.22.11.2 pref-src="" routing-table=main scope=30 suppress-hw-offload=no \
    target-scope=10
add check-gateway=ping disabled=no distance=2 dst-address=0.0.0.0/0 gateway=\
    10.22.10.2 routing-table=main suppress-hw-offload=no
add disabled=no dst-address=200.22.0.2/32 gateway=200.22.0.17 routing-table=\
    main suppress-hw-offload=no
add disabled=no dst-address=200.22.0.6/32 gateway=200.22.0.17 routing-table=\
    main suppress-hw-offload=no
/routing bfd configuration
add disabled=no interfaces=all min-rx=200ms min-tx=200ms multiplier=5
/routing ospf interface-template
add area=ospf-area-1 disabled=no interfaces=\
    vlan10,vlan40,gre-tunnel1,gre-tunnel2,lo
/system identity
set name=R14-22
/system note
set show-at-login=no
/tool romon
set enabled=yes



[admin@R15-22] > export compact
# 2024-04-22 11:12:46 by RouterOS 7.14.2
# software id =
#
/interface ethernet
set [ find default-name=ether1 ] name=ether0
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether3 ] name=ether2
set [ find default-name=ether4 ] name=ether3
/interface gre
add allow-fast-path=no local-address=200.22.0.34 name=gre-tunnel3 \
    remote-address=200.22.0.2
add allow-fast-path=no local-address=200.22.0.34 name=gre-tunnel4 \
    remote-address=200.22.0.6
/interface vlan
add interface=ether1 name=vlan20 vlan-id=20
add interface=ether1 name=vlan50 vlan-id=50
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
/interface lte apn
set [ find default=yes ] ip-type=ipv4 use-network-apn=no
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=pool_for_fil2 ranges=10.22.7.11-10.22.7.254
add name=dhcp_pool1 ranges=10.22.7.10-10.22.7.254
add name=dhcp_pool2 ranges=10.22.8.10-10.22.8.254
add name=dhcp_pool3 ranges=10.22.17.21-10.22.17.254
/ip dhcp-server
add address-pool=dhcp_pool2 interface=vlan20 name=dhcp1
add address-pool=dhcp_pool3 interface=vlan50 name=dhcp2
/port
set 0 name=serial0
/routing id
add disabled=no name=id-loopback select-dynamic-id=only-loopback
/routing ospf instance
add disabled=no name=ospf-instance-1
/routing ospf area
add disabled=no instance=ospf-instance-1 name=ospf-area-1
/ip firewall connection tracking
set udp-timeout=10s
/ipv6 settings
set disable-ipv6=yes max-neighbor-entries=8192
/interface ovpn-server server
set auth=sha1,md5
/ip address
add address=10.22.7.1/24 interface=ether1 network=10.22.7.0
add address=10.22.12.1/24 interface=gre-tunnel3 network=10.22.12.0
add address=10.22.13.1/24 interface=gre-tunnel4 network=10.22.13.0
add address=10.22.8.1/24 interface=vlan20 network=10.22.8.0
add address=10.22.17.20/24 interface=vlan50 network=10.22.17.0
add address=22.15.15.15 interface=lo network=22.15.15.15
/ip dhcp-client
add interface=ether0
/ip dhcp-server lease
add address=10.22.8.31 client-id=\
    ff:29:a8:11:80:0:1:0:1:2d:b8:c5:f0:0:c:29:a8:11:80 mac-address=\
    00:0C:29:A8:11:80 server=dhcp1
/ip dhcp-server network
add address=10.22.8.0/24 dns-server=10.22.8.31 gateway=10.22.8.1
add address=10.22.17.0/24 dns-server=10.22.8.31 gateway=10.22.17.20
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether0
/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
    10.22.12.2 pref-src="" routing-table=main scope=30 suppress-hw-offload=no \
    target-scope=10
add check-gateway=ping disabled=no distance=2 dst-address=0.0.0.0/0 gateway=\
    10.22.13.2 pref-src="" routing-table=main scope=30 suppress-hw-offload=no \
    target-scope=10
add disabled=no dst-address=200.22.0.2/32 gateway=200.22.0.33 routing-table=\
    main suppress-hw-offload=no
add disabled=no dst-address=200.22.0.6/32 gateway=200.22.0.33 routing-table=\
    main suppress-hw-offload=no
/routing bfd configuration
add disabled=no interfaces=all min-rx=200ms min-tx=200ms multiplier=5
/routing ospf interface-template
add area=ospf-area-1 disabled=no interfaces=\
    gre-tunnel3,gre-tunnel4,vlan20,vlan50,lo
/system identity
set name=R15-22
/system note
set show-at-login=no
/tool romon
set enabled=yes



[admin@R16-22] > export compact
# 2024-04-22 11:13:17 by RouterOS 7.14.2
# software id =
#
/interface bridge
add name=bridge0 port-cost-mode=short
/interface ethernet
set [ find default-name=ether1 ] name=ether0
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether3 ] name=ether2
set [ find default-name=ether4 ] name=ether3
/interface vlan
add interface=bridge0 name=vlan30 vlan-id=30
add interface=bridge0 name=vlan60 vlan-id=60
/interface vrrp
add interface=vlan30 name=vrrp1_vlan30
add interface=vlan60 name=vrrp2_vlan60
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
set slot20 slot=slot20
set slot21 slot=slot21
set slot22 slot=slot22
set slot23 slot=slot23
/interface lte apn
set [ find default=yes ] ip-type=ipv4 use-network-apn=no
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool0 ranges=10.22.0.20-10.22.0.254
add name=dhcp_pool1 ranges=10.22.9.20-10.22.9.254
add name=dhcp_pool2 ranges=10.22.16.20-10.22.16.254
/ip dhcp-server
add address-pool=dhcp_pool1 interface=vlan30 name=dhcp_for_vlan30
add address-pool=dhcp_pool2 interface=vlan60 name=dhcp_for_vlan60
/port
set 0 name=serial0
/routing id
add disabled=no name=only-loopback select-dynamic-id=only-loopback
/routing ospf instance
add disabled=no name=ospf-instance-1 router-id=only-loopback
/routing ospf area
add disabled=no instance=ospf-instance-1 name=ospf-area-1
/interface bridge port
add bridge=bridge0 ingress-filtering=no interface=ether1 internal-path-cost=\
    10 path-cost=10
add bridge=bridge0 ingress-filtering=no interface=ether2 internal-path-cost=\
    10 path-cost=10
/ip firewall connection tracking
set udp-timeout=10s
/ipv6 settings
set disable-ipv6=yes max-neighbor-entries=8192
/interface ovpn-server server
set auth=sha1,md5
/ip address
add address=10.22.14.1/24 interface=ether0 network=10.22.14.0
add address=10.22.4.1/24 interface=ether3 network=10.22.4.0
add address=10.22.0.14/24 interface=bridge0 network=10.22.0.0
add address=22.16.16.16 interface=lo network=22.16.16.16
add address=10.22.9.1/24 interface=vlan30 network=10.22.9.0
add address=10.22.16.1/24 interface=vlan60 network=10.22.16.0
add address=10.22.9.3 interface=vrrp1_vlan30 network=10.22.9.0
add address=10.22.16.3 interface=vrrp2_vlan60 network=10.22.16.3
/ip dhcp-server lease
add address=10.22.9.31 client-id=\
    ff:29:f9:75:4:0:1:0:1:2d:b8:d4:4c:0:c:29:f9:75:4 mac-address=\
    00:0C:29:F9:75:04 server=dhcp_for_vlan30
/ip dhcp-server network
add address=10.22.9.0/24 gateway=10.22.9.1
add address=10.22.16.0/24 gateway=10.22.16.1
/ip route
add gateway=10.22.14.2
/routing bfd configuration
add disabled=no interfaces=all min-rx=200ms min-tx=200ms multiplier=5
/routing ospf interface-template
add area=ospf-area-1 disabled=no interfaces=vlan30,vlan60,ether3,lo,ether0
/system identity
set name=R16-22
/system note
set show-at-login=no
/tool romon
set enabled=yes



[admin@R17-22] > export compact
# 2024-04-22 11:13:52 by RouterOS 7.14.2
# software id =
#
/interface bridge
add name=bridge0 port-cost-mode=short
/interface ethernet
set [ find default-name=ether1 ] name=ether0
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether3 ] name=ether2
set [ find default-name=ether4 ] name=ether3
/interface vlan
add interface=bridge0 name=vlan30 vlan-id=30
add interface=bridge0 name=vlan60 vlan-id=60
/interface vrrp
add interface=vlan30 name=vrrp1_vlan30 preemption-mode=no
add interface=vlan60 name=vrrp2_vlan60 preemption-mode=no
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
set slot20 slot=slot20
set slot21 slot=slot21
set slot22 slot=slot22
set slot23 slot=slot23
/interface lte apn
set [ find default=yes ] ip-type=ipv4 use-network-apn=no
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/port
set 0 name=serial0
/routing id
add disabled=no name=only-loopback select-dynamic-id=only-loopback
/routing ospf instance
add disabled=no name=ospf-instance-1 router-id=only-loopback
/routing ospf area
add disabled=no instance=ospf-instance-1 name=ospf-area-1
/interface bridge port
add bridge=bridge0 ingress-filtering=no interface=ether1 internal-path-cost=\
    10 path-cost=10
add bridge=bridge0 ingress-filtering=no interface=ether2 internal-path-cost=\
    10 path-cost=10
/ip firewall connection tracking
set udp-timeout=10s
/ipv6 settings
set disable-ipv6=yes max-neighbor-entries=8192
/interface ovpn-server server
set auth=sha1,md5
/ip address
add address=10.22.15.1/24 interface=ether0 network=10.22.15.0
add address=10.22.4.2/24 interface=ether3 network=10.22.4.0
add address=10.22.0.15/24 interface=bridge0 network=10.22.0.0
add address=22.17.17.17 interface=lo network=22.17.17.17
add address=10.22.9.2/24 interface=vlan30 network=10.22.9.0
add address=10.22.16.2/24 interface=vlan60 network=10.22.16.0
add address=10.22.9.3 interface=vrrp1_vlan30 network=10.22.9.0
add address=10.22.16.3 interface=vrrp2_vlan60 network=10.22.16.3
/ip route
add gateway=10.22.15.2
/routing bfd configuration
add disabled=no interfaces=all min-rx=200ms min-tx=200ms multiplier=5
/routing ospf interface-template
add area=ospf-area-1 disabled=no interfaces=vlan30,vlan60,lo,ether3,ether0
/system identity
set name=R17-22
/system note
set show-at-login=no
/tool romon
set enabled=yes



[admin@R18-22] > export compact
# 2024-04-22 06:47:36 by RouterOS 7.14.2
# software id =
#
/interface ethernet
set [ find default-name=ether1 ] name=ether0
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether3 ] name=ether2
set [ find default-name=ether4 ] name=ether3
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
/interface lte apn
set [ find default=yes ] ip-type=ipv4 use-network-apn=no
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=pool_for_kabinet ranges=10.22.8.3-10.22.8.254
add name=dhcp_pool2 ranges=10.22.8.10-10.22.8.254
add name=dhcp_pool3 ranges=10.22.8.10-10.22.8.254
add name=dhcp_pool4 ranges=10.22.17.20-10.22.17.254
/port
set 0 name=serial0
/ip firewall connection tracking
set udp-timeout=10s
/ipv6 settings
set disable-ipv6=yes max-neighbor-entries=8192
/interface ovpn-server server
set auth=sha1,md5
/ip address
add address=10.22.3.1/24 interface=ether1 network=10.22.3.0
/ip dhcp-client
add interface=ether0
/ip dhcp-server
add address-pool=dhcp_pool3 interface=*6 name=dhcp1
add address-pool=dhcp_pool4 interface=*7 name=dhcp2
/ip dhcp-server network
add address=10.22.8.0/24 gateway=10.22.8.2
add address=10.22.17.0/24 gateway=10.22.17.1
/routing bfd configuration
add disabled=no interfaces=all min-rx=200ms min-tx=200ms multiplier=5
/system identity
set name=R18-22
/system note
set show-at-login=no
/tool romon
set enabled=yes



[admin@R19-22] > export compact
# 2024-04-22 06:48:07 by RouterOS 7.14.2
# software id =
#
/interface bridge
add name=loopback port-cost-mode=short
/interface ethernet
set [ find default-name=ether1 ] name=ether0
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether3 ] name=ether2
set [ find default-name=ether4 ] name=ether3
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
set slot20 slot=slot20
set slot21 slot=slot21
set slot22 slot=slot22
set slot23 slot=slot23
/interface lte apn
set [ find default=yes ] ip-type=ipv4 use-network-apn=no
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool1 ranges=20.22.2.20-20.22.2.254
add name=dhcp_pool2 ranges=20.22.2.2-20.22.2.254
add name=dhcp_pool3 ranges=20.22.2.30-20.22.2.254
add name=dhcp_pool4 ranges=20.22.2.30-20.22.2.254
/ip dhcp-server
add address-pool=dhcp_pool4 interface=ether1 name=dhcp1
/port
set 0 name=serial0
/routing id
add disabled=no name=forospf select-dynamic-id=only-loopback
/routing ospf instance
add disabled=no name=default-v2
add disabled=yes name=ospf-instance-1 router-id=forospf
/routing ospf area
add disabled=yes instance=default-v2 name=backbone-v2
add disabled=yes instance=default-v2 name=ospf-area-1
/interface bridge port
add bridge=*7 interface=ether1 pvid=30
/ip firewall connection tracking
set udp-timeout=10s
/ipv6 settings
set disable-ipv6=yes max-neighbor-entries=8192
/interface ovpn-server server
set auth=sha1,md5
/ip address
add address=20.22.2.1/24 interface=ether1 network=20.22.2.0
add address=22.19.19.19 interface=loopback network=22.19.19.19
/ip dhcp-client
add interface=ether0
/ip dhcp-server network
add address=20.22.2.0/24 gateway=20.22.2.1
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.22.4.3 pref-src=\
    "" routing-table=main scope=30 suppress-hw-offload=no target-scope=10
/routing bfd configuration
add disabled=no interfaces=all min-rx=200ms min-tx=200ms multiplier=5
/routing ospf interface-template
add area=ospf-area-1 disabled=yes interfaces=ether1,ether0,loopback
/system identity
set name=R19-22
/system note
set show-at-login=no
/tool romon
set enabled=yes



[admin@FW1-22] > export compact
# 2024-04-22 06:48:37 by RouterOS 7.14.2
# software id =
#
/interface ethernet
set [ find default-name=ether1 ] advertise="10M-baseT-half,10M-baseT-full,100M\
    -baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full,2.5G-baseT,5G-base\
    T,10G-baseT" disable-running-check=no name=ether0
set [ find default-name=ether2 ] advertise="10M-baseT-half,10M-baseT-full,100M\
    -baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full,2.5G-baseT,5G-base\
    T,10G-baseT" disable-running-check=no name=ether1
set [ find default-name=ether3 ] advertise="10M-baseT-half,10M-baseT-full,100M\
    -baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full,2.5G-baseT,5G-base\
    T,10G-baseT" disable-running-check=no name=ether2
/interface gre
add allow-fast-path=no local-address=200.22.0.2 name=gre-tunnel2 \
    remote-address=200.22.0.18
add allow-fast-path=no local-address=200.22.0.2 name=gre-tunnel3 \
    remote-address=200.22.0.34
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
set slot20 slot=slot20
set slot21 slot=slot21
set slot22 slot=slot22
set slot23 slot=slot23
set slot24 slot=slot24
/interface lte apn
set [ find default=yes ] ip-type=ipv4 use-network-apn=no
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/port
set 0 name=serial0
/routing id
add disabled=no name=only-loopback select-dynamic-id=only-loopback
/routing ospf instance
add disabled=yes name=ospf-instance-1 router-id=only-loopback
/routing ospf area
add disabled=yes instance=ospf-instance-1 name=ospf-area-1
/ip firewall connection tracking
set udp-timeout=10s
/ip settings
set max-neighbor-entries=8192
/ipv6 settings
set disable-ipv6=yes
/interface ovpn-server server
set auth=sha1,md5
/ip address
add address=10.22.14.2/24 interface=ether1 network=10.22.14.0
add address=10.22.5.1/24 interface=ether0 network=10.22.5.0
add address=22.1.1.1 interface=lo network=22.1.1.1
add address=10.22.12.2/24 interface=gre-tunnel3 network=10.22.12.0
add address=10.22.11.2/24 interface=gre-tunnel2 network=10.22.11.0
/ip dhcp-client
add interface=ether2
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether2
/ip route
add disabled=no dst-address=0.0.0.0/0 gateway=200.22.0.1 routing-table=main \
    suppress-hw-offload=no
/routing bfd configuration
add disabled=no interfaces=all min-rx=200ms min-tx=200ms multiplier=5
/routing ospf interface-template
add area=ospf-area-1 disabled=yes interfaces=ether0,ether1,lo
/system identity
set name=FW1-22
/system note
set show-at-login=no
/tool romon
set enabled=yes



[admin@FW2-22] > export compact
# 2024-04-22 06:49:03 by RouterOS 7.14.2
# software id =
#
/interface ethernet
set [ find default-name=ether1 ] advertise="10M-baseT-half,10M-baseT-full,100M\
    -baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full,2.5G-baseT,5G-base\
    T,10G-baseT" disable-running-check=no name=ether0
set [ find default-name=ether2 ] advertise="10M-baseT-half,10M-baseT-full,100M\
    -baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full,2.5G-baseT,5G-base\
    T,10G-baseT" disable-running-check=no name=ether1
set [ find default-name=ether3 ] advertise="10M-baseT-half,10M-baseT-full,100M\
    -baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full,2.5G-baseT,5G-base\
    T,10G-baseT" disable-running-check=no name=ether2
/interface gre
add allow-fast-path=no local-address=200.22.0.6 name=gre-tunnel1 \
    remote-address=200.22.0.18
add allow-fast-path=no local-address=200.22.0.6 name=gre-tunnel4 \
    remote-address=200.22.0.34
/disk
set slot1 slot=slot1
set slot2 slot=slot2
set slot3 slot=slot3
set slot4 slot=slot4
set slot5 slot=slot5
set slot6 slot=slot6
set slot7 slot=slot7
set slot8 slot=slot8
set slot9 slot=slot9
set slot10 slot=slot10
set slot11 slot=slot11
set slot12 slot=slot12
set slot13 slot=slot13
set slot14 slot=slot14
set slot15 slot=slot15
set slot16 slot=slot16
set slot17 slot=slot17
set slot18 slot=slot18
set slot19 slot=slot19
set slot20 slot=slot20
set slot21 slot=slot21
set slot22 slot=slot22
set slot23 slot=slot23
/interface lte apn
set [ find default=yes ] ip-type=ipv4 use-network-apn=no
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/port
set 0 name=serial0
/routing id
add disabled=no name=only-loopback select-dynamic-id=only-loopback
/routing ospf instance
add disabled=yes name=ospf-instance-1 router-id=only-loopback
/routing ospf area
add disabled=no instance=ospf-instance-1 name=ospf-area-1
/ip firewall connection tracking
set udp-timeout=10s
/ip settings
set max-neighbor-entries=8192
/ipv6 settings
set disable-ipv6=yes
/interface ovpn-server server
set auth=sha1,md5
/ip address
add address=10.22.5.2/24 interface=ether0 network=10.22.5.0
add address=10.22.15.2/24 interface=ether1 network=10.22.15.0
add address=22.2.2.2 interface=lo network=22.2.2.2
add address=10.22.10.2/24 interface=gre-tunnel1 network=10.22.10.0
add address=10.22.13.2/24 interface=gre-tunnel4 network=10.22.13.0
/ip dhcp-client
add interface=ether2
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether2
/ip route
add gateway=200.22.0.5
/routing bfd configuration
add disabled=no interfaces=all min-rx=200ms min-tx=200ms multiplier=5
/routing ospf interface-template
add area=ospf-area-1 disabled=no interfaces=ether0,ether1,lo
/system identity
set name=FW2-22
/system note
set show-at-login=no
/tool romon
set enabled=yes